package com.aranandroid.moremodle

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView
import com.aranandroid.common.CommonActivity
import com.aranandroid.model1.Model1Activity
import com.aranandroid.model2.Modle2Activity

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        findViewById<TextView>(R.id.text0main).setOnClickListener { v ->

            startActivity(Intent(this,Model1Activity::class.java))
        }

        findViewById<TextView>(R.id.text2main).setOnClickListener { v ->

            startActivity(Intent(this,Modle2Activity::class.java))
        }

        findViewById<TextView>(R.id.textcmain).setOnClickListener { v ->

            startActivity(Intent(this,CommonActivity::class.java))
        }
    }
}